package arch.chameleon.busi.sample.service;

import java.io.Serializable;
import java.util.List;

import arch.chameleon.busi.sample.model.SampleCpu;
import arch.chameleon.busi.sample.model.SampleCpuSpec;
import arch.chameleon.busi.sample.model.SampleInfo;

/**
 * sample service层接口
 * @author George
 *
 */
public interface SampleService {

	
	/**
	 * 保存/更新Sample CPU完整信息
	 * @param cpuSample
	 * @param cpuSpecSample
	 */
	void save(SampleCpu cpuSample, SampleCpuSpec cpuSpecSample);
	
	/**
	 * 通过主键移除记录
	 * @param id
	 * @param specId
	 */
	void remove(String id, String specId);
	
	/**
	 * 查询所有Sample CPU信息
	 * @return
	 */
	List<SampleInfo> seletAll();
	
	/**
	 * 查询所有Sample CPU信息(MyBatis)
	 * @return
	 */
	List<SampleInfo> selectAllViaMybatis();
}
